/*    */ package com.zimbra.cs.client.soap;
/*    */ 
/*    */ import com.zimbra.common.service.ServiceException;
/*    */ import com.zimbra.common.soap.DomUtil;
/*    */ import com.zimbra.common.soap.MailConstants;
/*    */ import com.zimbra.cs.client.LmcTag;
/*    */ import org.dom4j.DocumentHelper;
/*    */ import org.dom4j.Element;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class LmcCreateTagRequest
/*    */   extends LmcSoapRequest
/*    */ {
/*    */   private String mName;
/*    */   private String mColor;
/*    */   
/* 36 */   public void setName(String n) { this.mName = n; }
/* 37 */   public void setColor(String c) { this.mColor = c; }
/*    */   
/* 39 */   public String getName() { return this.mName; }
/* 40 */   public String getColor() { return this.mColor; }
/*    */   
/*    */   protected Element getRequestXML()
/*    */   {
/* 44 */     Element request = DocumentHelper.createElement(MailConstants.CREATE_TAG_REQUEST);
/* 45 */     Element t = DomUtil.add(request, "tag", "");
/* 46 */     DomUtil.addAttr(t, "name", this.mName);
/* 47 */     DomUtil.addAttr(t, "color", this.mColor);
/* 48 */     return request;
/*    */   }
/*    */   
/*    */   protected LmcSoapResponse parseResponseXML(Element responseXML)
/*    */     throws ServiceException
/*    */   {
/* 54 */     Element tagElem = DomUtil.get(responseXML, "tag");
/* 55 */     LmcTag f = parseTag(tagElem);
/* 56 */     LmcCreateTagResponse response = new LmcCreateTagResponse();
/* 57 */     response.setTag(f);
/* 58 */     return response;
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/client/soap/LmcCreateTagRequest.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */